﻿using System;
using System.Collections.Generic;
using System.Text;
using log4net;
using System.Net.Sockets;
using log4net.Config;
using System.IO;
namespace UDPPunchTest
{
    /// <summary>
    /// This program tries to create a P2P UDP route between two programs that are behind the firewall.
    /// Author: Vijay Kumar
    /// Email: kumar.vijay@gmail.com
    /// </summary>
    class Program
    {
        static void Main(string[] args)
        {
            configureLogger();
            UDPPunchTest test = new UDPPunchTest();
            test.startTest();
        }
        /// <summary>
        /// Configure the log4net logger
        /// </summary>
        private static void configureLogger()
        {
            // Set up a simple configuration that logs on the console.
            BasicConfigurator.Configure();
            log4net.Config.XmlConfigurator.Configure(new FileInfo("../../log4net_config.xml"));
        }
    }
}
